package com.chenyuxin.ilp.model.enums.exception;

import lombok.Getter;

@Getter
public enum CommunityExceptionEnum implements BaseExceptionEnum{
    POST_TAG_EXIST(403001,"同名标签已存在"),
    IMAGE_NOT_EXIST(403002,"帖子图片不存在"),
    LIKE_EXIST(403003,"帖子已点赞，请勿重复点赞"),
    FAVORITE_EXIST(403004,"帖子已收藏，请勿重复收藏"),
    NOT_FAVORITE_POST(403005,"您未收藏帖子，无法取消收藏"),
    NOT_LIKE_POST(403006,"您未点赞帖子，无法取消点赞"),
    COMMENT_LIKE_EXIST(403007,"请勿重复点赞");
    private final Integer code;
    private final String errorMessage;
    CommunityExceptionEnum(Integer code,String errorMessage){
        this.code = code;
        this.errorMessage = errorMessage;
    }
}
